package com.itheima.springbootcondition2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringbootCondition2Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringbootCondition2Application.class, args);
//        Object user = context.getBean("user");
//        System.out.println(user);
        Object user2 = context.getBean("user2");
        System.out.println(user2);
    }

}
